#!/usr/bin/python
#coding:utf-8

import pandas as pd
import sys

df = pd.read_csv(sys.argv[1], header=None)

df = df.T

df.columns=['year','num']

df.sort('year', inplace=True)

df.to_csv(sys.argv[1], index=False)